from multiprocessing import Array, Process

def arr_share1(A):
    # A.value="管理员".encode("utf-8")
    for i in A:
        print(chr(ord(i)))

def arr_share2(A):
    A.value="welcome".encode("utf-8")






if __name__ == '__main__':
    A=Array('c',"张三:李四:王麻子:小偷".encode("utf-8"))
    p1=Process(target=arr_share1,args=(A,))
    p2=Process(target=arr_share2,args=(A,))
    p1.start()
    p2.start()
    p1.join()
    p2.join()
    print(A.value.decode('utf-8'))